// ============================== 导入依赖 ============================== //

import CONST from '@admin/components/chart/CONST'

// ============================== 导出配置 ============================== //

export default {
  grid: {
    top: 40,
    left: 10,
    right: 16,
    bottom: 0,
    containLabel: true,
  },

  legend: {
    top: 6,
    right: 0,
    icon: 'roundRect',
    itemWidth: 16,
    itemHeight: 4,
    itemGap: 20,
  },

  xAxis: {
    data: [],
    boundaryGap: false,
    axisTick: {
      show: false,
    },
    axisLabel: {
      color: '#666',
    },
    axisLine: {
      lineStyle: {
        color: '#999',
      },
    },
  },

  yAxis: {
    axisLabel: {
      color: '#666',
    },
    axisTick: {
      show: false,
    },
    splitLine: {
      show: false,
    },
  },

  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'cross',
      label: {
        backgroundColor: '#6a7985',
      },
    },
  },

  series: [
    {
      name: '当前量',
      ...CONST.LINE_SERIE.blue,
      areaStyle: {
        color: CONST.AREA_COLOR.blue,
      },
    },
    {
      name: '昨日同期',
      ...CONST.LINE_SERIE.green,
      areaStyle: {
        color: CONST.AREA_COLOR.green,
      },
    },
    {
      name: '去年同期',
      ...CONST.LINE_SERIE.golden,
      areaStyle: {
        color: CONST.AREA_COLOR.golden,
      },
    },
  ],
}
